#!/bin/bash
set -ex
# 从spec文件中提取Name、Version、Source
name=$(rpmspec -P firefox.spec | grep '^Name:' | awk '{print $2}')
version=$(rpmspec -P firefox.spec | grep '^Version:' | awk '{print $2}')
source0=$(rpmspec -P firefox.spec | grep '^Source0:' | awk '{print $2}')
source1=$(rpmspec -P firefox.spec | grep '^Source1:' | awk '{print $2}')
esr="esr"
ver="$version$esr"
sh generate-langpacks.sh $ver
sh process-official-tarball $ver


